# utils.py

def map_type(dtype):
    mapping = {
        "int64": "INT",
        "object": "VARCHAR(255)",
        "datetime64[ns]": "DATETIME",
        "float64": "FLOAT"
    }
    return mapping.get(str(dtype), "TEXT")